package com.example.high_slope_electronic_sand_table.precipitation.Enum;

/**
 * 降水量监测-降水量告警等级
 */
public enum PrecipitationWarningEnum {
    WARNING_ONE(1,33.3f),
    WARNING_TWO(2,16.7f),
    WARNING_THREE(3,8.3f),
    WARNING_FOUR(4,5f);

    private Integer warningLevel; // 告警等级
    private Float value; // 值

    private PrecipitationWarningEnum(int warningLevel, float value) {
        this.warningLevel = warningLevel;
        this.value = value;
    }

    public Integer getWarningLevel() {
        return warningLevel;
    }

    public Float getValue() {
        return value;
    }
}
